package game

import "sync"

type TaskInfo struct {
	TaskId	int
	State 	int
}

type ModUniqueTask struct {
	MyTaskInfo 	map[int]*TaskInfo
	Locker 		*sync.Locker
}

func (self *ModUniqueTask) IsTaskFinished(taskId int) bool {
	task, ok := self.MyTaskInfo[taskId]
	if !ok {
		return false
	}
	return task.State == Task_state_Finish
}